package com.icecloud.cloud.filestore.service;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 读取mongodb库配置文件
 * 
 * @author penghaozhong
 *
 */
@ConfigurationProperties(prefix = MongoDBDataSourceProperties.PREFIX, ignoreUnknownFields = false)
public class MongoDBDataSourceProperties {

	public MongoDBDataSourceProperties() {
		super();
	}

	// 对应配置文件里的配置键
	public final static String PREFIX = "mongo";
	private String username;
	private String database;
	private String password;
	private String url;
	private int port;
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getDatabase() {
		return database;
	}
	public void setDatabase(String database) {
		this.database = database;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public int getPort() {
		return port;
	}
	public void setPort(int port) {
		this.port = port;
	}

	

}
